﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="orderone.aspx.cs" Inherits="QunYing.Web.market.orderone" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
        #shopcart h2
        {
            background: url("images/cart_bg_05.gif") no-repeat scroll right top #AACDED;
            height: 28px;
            line-height: 28px;
        }
        #shopcart h2 strong
        {
            background: url("images/cart_bg_03.gif") no-repeat scroll left top transparent;
            display: block;
            height: 28px;
            padding: 0 20px;
        }
        .cart_table
        {
            -moz-border-bottom-colors: none;
            -moz-border-image: none;
            -moz-border-left-colors: none;
            -moz-border-right-colors: none;
            -moz-border-top-colors: none;
            border-color: #AACDED;
            border-style: solid;
            border-width: 0 3px;
            overflow: hidden;
            padding: 20px 17px 0;
        }
        .round
        {
            background: url("images/cart_bg_11.gif") repeat-x scroll 0 top transparent;
            height: 10px;
            margin-bottom: 10px;
        }
        .lround
        {
            background: url("images/cart_bg_09.gif") no-repeat scroll left top transparent;
            float: left;
            height: 10px;
            width: 10px;
        }
        .rround
        {
            background: url("images/cart_bg_10.gif") no-repeat scroll right top transparent;
            float: right;
            height: 10px;
            width: 10px;
        }
        th, td
        {
            border: 1px solid #AACDED;
            padding-left: 5px;
        }
        .navgo
        {
            text-align: right;
            margin: 10px 0px 10px 0px;
        }
        #total
        {
            text-align: right;
            background-color:#EBF4FB;
            border: 1px solid #AACDED;
            border-top:0px;
            height:30px;
            font-size:16px;
            padding:10px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="m_cart_curr">
        <div class="one" id="">
        </div>
    </div>
    <div id="shopcart">
        <h2>
            <strong>我挑选的商品</strong>
        </h2>
        <div class="cart_table">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
         
            <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
                Width="100%" AutoGenerateColumns="False" DataKeyNames="商品ID,类型" 
                    onrowdatabound="GridView1_RowDataBound">
                <RowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="商品名称">
                        <ItemTemplate>
                            <a target="_blank" href="<%# Eval("类型") %>detail.aspx?id=<%# Eval("商品ID") %>">
                                <%# Eval("商品名称")%></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="品牌" HeaderText="品牌" SortExpression="品牌">
                    <HeaderStyle Width="80px" />
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="单价(元)">
                        <HeaderStyle Width="80px" />
                        <ItemStyle Font-Bold="True" ForeColor="#FF3300" HorizontalAlign="Center" />
                        <ItemTemplate>
                            ￥<%# Eval("单价")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="消耗积分" HeaderText="消耗积分" SortExpression="消耗积分">
                        <HeaderStyle Width="80px" />
                        <ItemStyle Font-Bold="True" ForeColor="#FF3300" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="赠送积分" HeaderText="赠送积分" SortExpression="赠送积分">
                        <HeaderStyle Width="80px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="单位" HeaderText="单位" SortExpression="单位">
                        <HeaderStyle Width="50px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="数量">
                        <ItemTemplate>
                            <asp:ImageButton ID="btnSub" runat="server" 
                                ImageUrl="~/images/bag_close.gif" CommandArgument=' <%# Container.DataItemIndex %>' onclick="btnSub_Click" />
                            <asp:TextBox ID="txtNum" runat="server" Width="40px" 
                                ontextchanged="txtNum_TextChanged" AutoPostBack="True">1</asp:TextBox>
                            <asp:ImageButton ID="btnAdd" runat="server" 
                                ImageUrl="~/images/bag_open.gif" CommandArgument=' <%# Container.DataItemIndex %>' onclick="btnAdd_Click" />
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除商品">
                        <ItemTemplate>
                            <asp:LinkButton ID="btnDel" runat="server" 
                                CommandArgument=' <%# Container.DataItemIndex %>' 
                                OnClientClick="return window.confirm('你确定要删除吗?');" onclick="btnDel_Click">删除</asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle Width="70px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#EBF4FB" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    没有挑选商品
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#EBF4FB" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <div id="total">
                商品总金额：<span style="font-weight: bold; color:#FF3300">￥</span><asp:Label 
                    ID="lblTotalPrice" runat="server" Text="0.00" 
                    ForeColor="#FF3300" Font-Bold="True"></asp:Label>元 消耗积分：<asp:Label 
                    ID="lblUseScore" runat="server" Text="0" ForeColor="#FF3300" Font-Bold="True"></asp:Label> 赠送积分：<asp:Label 
                    ID="lblGetScore" runat="server" Text="0" ForeColor="#FF3300" Font-Bold="True"></asp:Label></div>
                    
                       </ContentTemplate>
            </asp:UpdatePanel>
            <div class="navgo">
                <asp:ImageButton ID="btnBack" runat="server" ImageUrl="~/images/btnnav_back.gif"
                    OnClick="btnBack_Click" />
                <asp:ImageButton ID="btnGo" runat="server" ImageUrl="~/images/btnnav_go.gif"
                    OnClick="btnGo_Click" />
            </div>
        </div>
        <div class="round">
            <div class="lround">
            </div>
            <div class="rround">
            </div>
        </div>
    </div>
</asp:Content>
